In the mathematics area of graph theory, an induced path in an undirected graph is a path that is an induced subgraph of . That is, it is a sequence of vertices in such that each two adjacent vertices in the sequence are connected by an edge in , and each two nonadjacent vertices in the sequence are not connected by any edge in . An induced path is sometimes called a snake, and the problem of finding long induced paths in is known as the snake-in-the-box problem.
Similarly, an induced cycle is a cycle graph that is an induced subgraph of ; induced cycles are also called chordless cycles or (when the length of the cycle is four or more) holes. An antihole is a hole in the complement of , i.e., an antihole is a complement of a hole.
The length of the longest induced path in a graph has sometimes been called the detour number of the graph;. for , having bounded detour number is equivalent to having bounded tree-depth., Proposition 6.4, p. 122. The induced path number of a graph is the smallest number of induced paths into which the vertices of the graph may be partitioned,. and the closely related path cover number of is the smallest number of induced paths that together include all vertices of .. The girth of a graph is the length of its shortest cycle, but this cycle must be an induced cycle as any chord could be used to produce a shorter cycle; for similar reasons the odd girth of a graph is also the length of its shortest odd induced cycle.
It is also NP-complete to determine whether the vertices of a graph can be partitioned into two induced paths, or two induced cycles.. As a consequence, determining the induced path number of a graph is NP-hard.
The complexity of approximating the longest induced path or cycle problems can be related to that of finding large independent sets in graphs, by the following reduction.. From any graph G with n vertices, form another graph H with twice as many vertices as G, by adding to G n( n − 1)/2 vertices having two neighbors each, one for each pair of vertices in G. Then if G has an independent set of size k, H must have an induced path and an induced cycle of length 2 k, formed by alternating vertices of the independent set in G with vertices of I. Conversely, if H has an induced path or cycle of length k, any maximal set of nonadjacent vertices in G from this path or cycle forms an independent set in G of size at least k/3. Thus, the size of the maximum independent set in G is within a constant factor of the size of the longest induced path and the longest induced cycle in H. Therefore, by the results of on inapproximability of independent sets, unless NP=ZPP, there does not exist a polynomial time algorithm for approximating the longest induced path or the longest induced cycle to within a factor of O( n1/2-ε) of the optimal solution.
Holes (and antiholes in graphs without chordless cycles of length 5) in a graph with n vertices and m edges may be detected in time (n+m2)..
|
|